package com.ylw.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Created by yangliwei on 2017/7/9.
 */
@Entity
@Table(name="t_user")
public class User extends IdEntity {

    private String name;
    private String address;

    @Transient
    private String girlFriend;//不会在表中产生

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getGirlFriend() {
        return girlFriend;
    }

    public void setGirlFriend(String girlFriend) {
        this.girlFriend = girlFriend;
    }
}
